package com.example.b_308.myapplication.controller;

import com.example.b_308.myapplication.controller.base.BaseController;
import com.example.b_308.myapplication.model.Staff;
import com.example.b_308.myapplication.service.AccountService;
import com.example.b_308.myapplication.view.account.IAccountView;

/**
 * Created by B-308 on 2017/12/5.
 */
public class AccountController extends BaseController{
    IAccountView iAccountView;
    AccountService accountService;
    static Staff staff = new Staff();

    public AccountController(IAccountView iAccountView) {
        this.iAccountView = iAccountView;
        accountService = new AccountService(iAccountView);
    }

    public void personal(String userid) {
        staff.put("userid", userid);
        accountService.personal(staff);
    }

}
